//
//  HKNavigationListViewController.m
//  HKiOSTools
//
//  Created by 胡锦涛 on 2020/12/23.
//

#import "HKNavigationListViewController.h"
#import "BifrostHeader.h"
#import "UIKitModuleService.h"

@interface HKNavigationListViewController ()
@end

@implementation HKNavigationListViewController
+ (void)load {
    [Bifrost bindURL:kRouteNavigationListPage
           toHandler:^id _Nullable(NSDictionary * _Nullable parameters) {
        return [HKNavigationListViewController new];
    }];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
   
}

- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    
}


- (void)initDataSource {
    [super initDataSource];
    self.dataSourceWithDetailText = [[QMUIOrderedDictionary alloc] initWithKeysAndObjects:
                                     @"拦截系统navBar返回按钮事件", @"例如询问已输入的内容要不要保存",
                                     @"感知系统的手势返回", @"可感知到是否成功手势返回或者中断了",
                                     @"方便控制界面导航栏样式", @"方便控制前后两个界面的导航栏和状态栏样式",
                                     @"优化导航栏在转场时的样式", @"优化系统navController只有一个navBar带来的问题",
                                     @"获取导航栏的正确布局位置", @"特别是前后两个界面导航栏显隐状态不一致时容易出现布局跳动",
                                     nil];
}

- (void)didSelectCellWithTitle:(NSString *)title {
    UIViewController *viewController = nil;
   
    viewController.title = title;
    [self.navigationController pushViewController:viewController animated:YES];
}

@end
